package com.anpy.bill.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Date;

/**
 * @Author : anpengyu
 * @create 2024/8/6 14:19
 */
@Data
@Builder
@Entity
@AllArgsConstructor
@TableName(value = "T_BANK")
public class BankEntity {

    @Id
    private Long id;
    private String name;
    @TableField(value = "user_id")
    private Long userId;
    private String type;
    @TableField(value = "card_number")
    private String cardNumber;
    private Date date;
    public BankEntity() {

    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }
}
